<template>
  <div>
    <!-- 面包屑 -->
    <mbx name1="数据统计" name2="数据报表" />
    <el-card class="mt16">
      <div id="main" :style="{ width: '840px', height: '420px' }"></div>
    </el-card>
  </div>
</template>

<script>
export default {
  async mounted() {
    const res = await this.$API.gettb()
    // 基于准备好的dom，初始化echarts实例
    var myChart = this.$echarts.init(document.getElementById('main'))
    // 绘制图表
    myChart.setOption(res)
  },
  methods: {}
}
</script>

<style scoped></style>
